<!-- 表格单选 -->

<template>
  <div class="DetailQuestionnaire-MyStatistic-table">
    <div v-for="question in obj.questionList" :key="question.id" class="relative">
      <div class="quar full inFlexCC">{{ question.title }}</div>

      <div class="quar">
        <div v-for="option in question.optionList" :key="option.id" class="DetailQuestionnaire-MyStatistic-table-row">
          <div class="percent20">{{ option.label }}</div>
          <div class="percent40">{{ option.num }}</div>
          <div class="percent40">{{ option.percent }}%</div>
        </div>
      </div>

      <div class="quar full">
        <ChartBar v-bind="question.numChart" />
      </div>

      <div class="quar full">
        <ChartBar v-bind="question.percentChart" percent />
      </div>
    </div>
  </div>
</template>

<script>
// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'
import MyRadio from '../MyRadio'

// ============================== 导出组件 ============================== //

export default CORE.extend(MyRadio, {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'MyRadioTable',
})
</script>
